const gameServices = require('../services/gameServices');

exports.getAllGames = async (req, res) => {
    try {
        const games = await gameServices.findAllGames();
        res.status(200).send(games);
    } catch (error) {
        console.log("Error: " + error);
        res.status(500).send(error);
    }
}